package com.xnyzc.lhy.finance.service.wallet;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.finance.entity.bank.OaDWithdrawalDetails;
import com.xnyzc.lhy.finance.entity.wallet.OaDWallet;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xnyzc.lhy.finance.params.dto.cashwithdrawal.OaDWithdrawalDetailsResults;

/**
 * <p>
 * 司机钱包表 服务类
 * </p>
 *
 * @author cuixiaojian
 * @since 2019-10-16
 */
public interface IOaDWalletService extends IService<OaDWallet> {

    /**
     * 获取司机钱包信息
     * @param driverId 司机ID
     * @return Object
     */
    Rv getDriverWalletInfo(Long driverId);

    /**
     * 获取司机提现状态
     * @param driverId
     * @return
     */
    Rv getWithdrawalAndAlipayState(Long driverId);

    /**
     * 司机绑定支付宝后，保存数据
     * @param driverId
     * @return
     */
    Rv getDriverBindAlipay(Long driverId, String tokenCode);
    /**
     * 司机申请提现
     * @param param
     * @return
     */
    Rv applyDriverWithdrawal(OaDWithdrawalDetails param);

    /**
     * 获取司机申请明细
     * @return
     */
    Rv getDriverWithdrawalDetails(OaDWithdrawalDetailsResults param);

}
